import pytest
from api.tpshop_registerApi_api import RegisterApi
from common.assert_tpshop import tpshop
from common.read03 import read03
from config import BASE_PATH


class TestTpshop:
    def setup(self):
        self.sess1 = RegisterApi()
        self.sess1.sess()
    @pytest.mark.parametrize("dase,req_body,status_code,status,msg",read03(BASE_PATH + "/data/tpshop.json"))
    def test(self,dase,req_body,status_code,status,msg):
        req_data = req_body
        resp = self.sess1.tpshop(req_data)
        print(dase,resp.json())
        tpshop(resp,status_code,status,msg)





